﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GenericsExample
{
    class Program
    {
        static void Main(string[] args)
        {
            MyCustomList<int> list = new MyCustomList<int>();
            MyCustomList<string> stringList = new MyCustomList<string>();

            for (int i = 0; i < 6; i++)
            {
                list.Add(i);
                stringList.Add("Vasya "+i );
            }

            foreach (var number in list)
            {
                Console.WriteLine(number);
            }


            Console.WriteLine("Count: {0}",list.Count);
            Console.WriteLine("Capacity: {0}",list.Capacity);

        }
    }
}
